package com.jiangcheng.demo.service;

import com.jiangcheng.demo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiangcheng.demo.utils.NewResult;
import com.jiangcheng.demo.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2021-07-15
 */
public interface UserService extends IService<User> {

    Result login(User user);
    Result register(User user);
    NewResult updateUserPicById(String picPath,Integer uId);

    String sendMimeMail(String email, HttpSession httpSession);

    Result emailLogin(User user);

    NewResult updateUsernameById(String username,Integer uId);

    NewResult updatePasswordByUid(String password,Integer uId);

    NewResult findUserById(Integer id);
//    public String uploadUserMyBackPic(String id, MultipartFile multipartFile) throws IOException;
}
